package oop;
/*
this关键字特点
    #代表当前对象的引用
    #用来区分成员变量个局部变量的重名
 */
public class Demo2_This {
    public static void main(String[] args) {
        Peopson p = new Peopson();
        p.setAge(18);
        p.setName("wzx");

    }
}
class Person {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}